package com.ywu.application.standard.role.data;

import com.ywu.application.standard.role.dto.MenuRoleAuthDto;
import com.ywu.application.standard.role.entity.MenuRoleAuthEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName MenuRoleAuthRepository
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/5/29 21:33
 * @Version 1.0
 **/
@Mapper
public interface MenuRoleAuthRepository {
    List<MenuRoleAuthEntity> queryMenuRoleInfo(@Param("model") MenuRoleAuthDto menuRoleAuthDto);

    void batchInsertMenuRoleInfo(@Param("list") ArrayList<MenuRoleAuthEntity> menuRoleAuthEntities);

    void deleteBatchByMenuId(@Param("list") List<Integer> menuIds);

    void deleteByRoleCode(@Param("code") String roleCode);
}
